package com.py.credit.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.py.credit.entity.CalendarTask;

public interface CalendarTaskDao {

	/**
	 * 添加该日期日历任务
	 * 
	 * @param userId
	 * @param title
	 * @param description
	 * @param datetime
	 */

	public void add(@Param(value = "userId") long userId, @Param(value = "title") String title,
			@Param(value = "description") String description, @Param(value = "datetime") String datetime);

	/**
	 * 修改该日期日历任务
	 * 
	 * @param id
	 * @param title
	 * @param description
	 * @param datetime
	 */

	public void modify(@Param(value = "id") int id, @Param(value = "title") String title,
			@Param(value = "description") String description, @Param(value = "datetime") String datetime);

	public void del(@Param(value = "id") int id);

	/**
	 * 查询该日期日历任务
	 * 
	 * @param userId
	 */

	public List<CalendarTask> getCalendarTask(@Param(value = "userId") long userId);
}
